home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / etc / acpi / resume.d / 35-modules-load.sh < prev    next >
Linux/UNIX/POSIX Shell Script  |  2008-10-14  |  549b  |  22 lines

  1. #!/bin/sh
  2.  
  3. # Increase the firmware loading timeout while we're doing this
  4. # Otherwise, swap thrash tends to lead to failure to start
  5. if [ -f /sys/class/firmware/timeout ]; then
  6.     timeout=`cat /sys/class/firmware/timeout`
  7.     echo 100 >/sys/class/firmware/timeout
  8. fi
  9.  
  10. # Load any drivers that we removed
  11. for x in $MODULES; do
  12.     modprobe $x;
  13. done
  14.  
  15. # And reset the firmware timeout
  16. if [ -f /sys/class/firmware/timeout ]; then
  17.     echo $timeout >/sys/class/firmware/timeout
  18. fi
  19.  
  20. # And bring back PCMCIA code
  21. [ -x /sbin/pccardctl ] && pccardctl insert
  22.